public class Test {
    public static void main(String[] args) {
        System.out.println("输出");
    }

    public static void main3(String[] args) {
        int sum = 0;
        for (int k = 1; k <= 5; k++) {
            int ret = 1;
            for (int i = 1; i <= k; i++) {
                ret *= i;
            }
            System.out.println(ret);
            sum += ret;
        }
        System.out.println(sum);
    }
    
    public static void main2(String[] args) {
        int i = 1;
        int sum = 0;
        while (i <= 5){
            int n = 1;
            int ret = 1;
            while (n <= i){
                ret *= n;
                n++;
            }
            System.out.println(ret);
            sum += ret;
            i++;
        }
        System.out.println(sum);
    }
    
    public static void main1(String[] args) {
        int i = 1;
        while (i <= 100){
            if (i % 15 != 0){
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
}
